<?php

namespace App\Http\Controllers\user;

use App\Dao\GoodsDao;
use App\Services\Code;
use App\Services\Logger;

class GoodsController extends BaseController
{
    public function goods(): array
    {
        $params = request()->all();
        $params['show'] = 1;
        return Code::message('',200,GoodsDao::goods($params));
    }


    public function info()
    {
        Logger::info1("request_data",request()->all());
        $params = request()->all();
        $params['is_shop_id'] = false;
        return Code::message('',200,GoodsDao::info($params));
    }
}
